package com.zhentao.service.into;

import com.zhentao.dao.CuisineDao;
import com.zhentao.pojo.Cuisine;
import com.zhentao.pojo.Orders;
import com.zhentao.pojo.Shopping;
import com.zhentao.service.CuisineService;
import com.zhentao.vo.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CuisineIm implements CuisineService {
    @Autowired
    CuisineDao dao;

    @Override
    public List<Cuisine> findCuisine(Query query) {
        List<Cuisine> cuasters = dao.findCuisine(query);

        return cuasters;
    }

    @Override
    public void ShopAdd(Shopping shopping) {
        dao.addShop(shopping);
    }

    @Override
    public List<Shopping> findShop() {
        return dao.findShop();
    }

    @Override
    public void DelShop(Query query) {
        dao.DelShop(query);
    }

    @Override
    public void AddOrder(Orders orders) {
        dao.AddOrder(orders);
    }

    @Override
    public List<Orders> ordersAll(Query query) {
        return dao.ordersAll(query);
    }

    @Override
    public void updateCuisine(Cuisine cuisine) {
        dao.updateCuisine(cuisine);
    }

    @Override
    public void deleteCuisine(Query query) {
        dao.deleteCuisine(query);
    }

    @Override
    public void addCuisine(Cuisine query) {
        dao.addCuisine(query);
    }

    @Override
    public void ordersUpdate(Orders orders) {
        dao.ordersUpdate(orders);
    }

    @Override
    public void Del(int sid) {
        dao.del(sid);
    }
}
